public class Test4 {

    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(12);
        myStack.push(23);
        myStack.push(34);
        myStack.push(45);

        int val = myStack.pop();
        System.out.println(val);

        int val2 = myStack.peek();
        System.out.println(val2);

        int val3 = myStack.peek();
        System.out.println(val3);

    }
}
